﻿using LuDragon.Data.Entities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LuDragon.IService.System
{
    /// <summary>
    /// 角色服务接口
    /// </summary>
    public interface IRoleService:IBaseService<Sys_Role>
    {
        /// <summary>
        /// 获取角色实体
        /// </summary>
        /// <param name="roleId"></param>
        /// <returns></returns>
        Sys_Role GetRole(int roleId);
        /// <summary>
        /// 获取角色列表
        /// </summary>
        /// <returns></returns>
        List<Sys_Role> GetRoleList();
        /// <summary>
        /// 保存角色
        /// </summary>
        /// <returns></returns>
        Sys_Role SaveRole(Sys_Role model);
        /// <summary>
        /// 删除角色
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        bool DelRole(int id);
        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        bool DelRole(Sys_Role model);
    }
}
